package com.zl.project.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 资源多条件查询分页实体类
 * @author 12642
 *
 */
public class suppmesgPaging {
	private String conname;//公司名称
	private String typename;//主营如:牛羊...
	private String bigTypename;//大类 如:禽类..
	private String explain;//资源单说明
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date offertime;//上传时间
	private Integer supplymesgid;//订单详情编号
	
	//查询条件
	private String commodity;//产品名称
	private String gsconname;//公司名称
	private String warehouse;//发货位置
	private String output;//产地要求
	private Integer fatherid;//大类要求
	
	private Integer page;//当前页码
	private Integer rows;//符合条件信息总条数
	private Integer pagecount;//总共可分为多少页
	private Integer pageRow=6;//每页查询多少条数据
	
	private Integer start;//起始页码数
	private Integer end;//结束页码数
	
	
	public String getConname() {
		return conname;
	}
	public void setConname(String conname) {
		this.conname = conname;
	}
	public String getTypename() {
		return typename;
	}
	public void setTypename(String typename) {
		this.typename = typename;
	}
	public String getBigTypename() {
		return bigTypename;
	}
	public void setBigTypename(String bigTypename) {
		this.bigTypename = bigTypename;
	}
	public String getExplain() {
		return explain;
	}
	public void setExplain(String explain) {
		this.explain = explain;
	}
	public Date getOffertime() {
		return offertime;
	}
	public void setOffertime(Date offertime) {
		this.offertime = offertime;
	}
	public String getCommodity() {
		return commodity;
	}
	public void setCommodity(String commodity) {
		this.commodity = commodity;
	}
	public String getGsconname() {
		return gsconname;
	}
	public void setGsconname(String gsconname) {
		this.gsconname = gsconname;
	}
	public String getWarehouse() {
		return warehouse;
	}
	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}
	public String getOutput() {
		return output;
	}
	public void setOutput(String output) {
		this.output = output;
	}
	public Integer getFatherid() {
		return fatherid;
	}
	public void setFatherid(Integer fatherid) {
		this.fatherid = fatherid;
	}
	public Integer getStart() {
		start= (getPage()-1 )* getPageRow();//开始的信息行数
		return start;
	}
	public void setStart(Integer start) {
		this.start = start;
	}
	public Integer getEnd() {
		end = getPage() * getPageRow();
		return end;
	}
	public void setEnd(Integer end) {
		this.end = end;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	public Integer getPagecount() {
		if(getRows() % getPageRow() == 0) {
			pagecount=getRows() / getPageRow();
		}else {
			pagecount=getRows() / getPageRow()+1;
		}
		return pagecount;
	}
	public void setPagecount(Integer pagecount) {
		this.pagecount = pagecount;
	}
	public Integer getPageRow() {
		return pageRow;
	}
	public void setPageRow(Integer pageRow) {
		this.pageRow = pageRow;
	}
	public Integer getSupplymesgid() {
		return supplymesgid;
	}
	public void setSupplymesgid(Integer supplymesgid) {
		this.supplymesgid = supplymesgid;
	}
	
	
}
